package com.avic.rong.auditcertification.fragment;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.avic.rong.BaseActivity;
import com.avic.rong.MainActivity;
import com.avic.rong.R;
import com.avic.rong.auditcertification.activity.MyCertificationActivity;
import com.avic.rong.bean.MinePageEvent;

import org.greenrobot.eventbus.EventBus;

import butterknife.OnClick;


//完成
public class FinishWriteActivity extends BaseActivity {



    @Override
    protected int getContentViewId() {
        return R.layout.activity_finish_write;
    }

    @Override
    protected void initView() {
        tvTitle.setText("个人认证");
        ivRight.setBackgroundResource(R.mipmap.slh);

    }
    @OnClick(R.id.bt_return_list)
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.bt_return_list:
                EventBus.getDefault().postSticky(new MinePageEvent());
                Intent intent = new Intent(this, MainActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intent);
                break;
        }
    }
    @Override
    protected void addListener() {
        ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EventBus.getDefault().postSticky(new MinePageEvent());
                Intent intent = new Intent(FinishWriteActivity.this, MainActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intent);
            }
        });
    }
    public static Intent queryIntent(Context context) {
        Intent intent = new Intent(context, FinishWriteActivity.class);
        return intent;
    }
}
